package com.block.db.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.block.db.entity.SmsTemplate;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * 
 * @since 2020-06-15
 */
public interface SmsTemplateMapper extends BaseMapper<SmsTemplate> {
    /**
     * 根据平台和操作类型 查询短信模版内容
     * @param otype
     * @return
     */
     SmsTemplate getTemplateByPlatformAndOtype(@Param("platform") String platform,
                                               @Param("otype") String otype,
                                               @Param("appCode") String appCode);

    SmsTemplate getTemplateByOperTypeAndAppCode(@Param("otype")String operationType, @Param("appCode") String appCode);
}
